#{set title:'Extranet' /} 
#{extends 'main.html' /}

#{if flash.success}
<div class="alert alert-success" align=center>
<a class=close data-dismiss="alert">x</a>
   <b> <p class="success">${flash.success}</p> </b>
</div> 
#{/if}
#{if flash.error}
<div class="alert alert-error" align=center>
<a class=close data-dismiss="alert">x</a>
   <b> <p class="success">${flash.error}</p> </b>
</div> 
#{/if}
<div class="navbar navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span
				class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
			</a> <a class="brand" align="center"> &nbsp; EXTRANET - Sistema de Controle de Tarefas</a>
			<div>
				<ul class="nav pull-right">

					<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"> Ola,
							<b>${user}</b> <b class="caret"></b>
					</a>
						<ul class="dropdown-menu">
							<li><a href="@{Application.logout()}"> <i class="icon-off"></i> Sair</a></li>
						</ul></li>
				</ul>
			</div>
		</div>
	</div>
</div>
<br><br><br>
<label><h3>Cancelar Tarefa</h3></label>
#{form @Administracao.confirmarCancelamentoTarefa()}
<table>
	<tr >
		<td>Motivo:</td>
		<td></td>
		<td><textarea rows="4" cols="50" name="descricao" value="${params.descricao}"> </textarea></td>
	</tr>
	
	<tr>
		<td>
			<input type="hidden" name="id" value="${id}"/><input type="submit" value="cancelarTarefa" />
		</td>
		#{/form}
		<td>&nbsp&nbsp&nbsp&nbsp</td>
		#{form @Administracao.tarefasConcluidas()}
		<td>
			<input type="hidden" name="cancelar" value="cancelar"/><input type="submit" value="Cancelar" />
		</td>
		#{/form}
	</tr>
	
</table>